
/*
规则定义
 */



const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var schema = new mongoose.Schema({ 
    type:Number,
    text:String,
   
});


schema.plugin(mongoosePaginate);
module.exports  = mongoose.model('Cate',  schema,'cate');  // Model.paginate()